package com.example.web05.service.impl;

//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.web05.domain.Emp;
import com.example.web05.service.EmpService;
import com.example.web05.mapper.EmpMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author father
* @description 针对表【emp(员工表)】的数据库操作Service实现
* @createDate 2025-09-24 10:00:52
*/
@Service
public class EmpServiceImpl implements EmpService{

    @Autowired
    private EmpMapper empMapper;
    /**
     * 根据id查询员工
     *
     * @param id
     * @return
     */
    @Override
    public Emp getEmpById(Integer id) {
        return empMapper.selectById(id);
    }
}




